/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package testingall;

import java.util.Scanner;

/**
 *
 * @author parallels
 */

public class Main {

    public static void main(String[] args) {
        
        WhenRunningSettings whenRunningSettings = new WhenRunningSettings();
        
        //inputOutputBasico();
        inputOutputBasico2();
        //testOut();
        //testArray();
        
        System.out.println("bye !");
    }
    
    private static void inputOutputBasico () {
        // create Scanner to obtain input from command window
        Scanner input = new Scanner(System.in);
        
        System.out.println ("hi");
        System.out.print("Enter first integer: "); // prompt
        int number1 = input.nextInt(); // read first number from user

        System.out.print("Enter second integer: "); // prompt
        int number2 = input.nextInt(); // read second number from user

        int sum = number1 + number2; // add numbers

        System.out.println("Sum is " + sum); // display sum
        //System.out.printf("Sum is %d\n", sum); // display sum
    }
    
    private static void inputOutputBasico2 () {
        // create Scanner to obtain input from command window
        Scanner input = new Scanner(System.in);
        String skipLine;
        
        System.out.print("Enter texto: ");
        String texto = input.nextLine();  
        System.out.println ("texto : " + texto);
        
        System.out.print("Enter integer: ");
        int number1 = input.nextInt();
        skipLine = input.nextLine();
        System.out.println ("int : " + number1);
        
        System.out.print("Enter double: ");
        double number2 = input.nextDouble();
        skipLine = input.nextLine();
        System.out.println ("double : " + number2);
        
        System.out.print("Enter texto: ");
        String texto2 = input.nextLine();  
        System.out.println ("texto : " + texto2); 
        
        System.out.print("Enter integer: ");
        int number3 = input.nextInt();
        skipLine = input.nextLine();
        System.out.println ("int : " + number3);
    }
    
    private static void testOut () {
        PrintOut.print();
        HexaToInt.print();
    }
    
    private static void testArray () {
        MyArray myArray = new MyArray(5);
        myArray.put(10);
        myArray.put(20);
        myArray.put(30);
        myArray.put(40);
        myArray.put(50);
        
        System.out.println (myArray.get(0));
        System.out.println (myArray.get(1));
        System.out.println (myArray.get(10));
        
    }
    
}
